﻿using Asp.Versioning;
using Himp.TaskScheduling.Datas;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Himp.TaskScheduling.V1
{
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/zyOperateRecord")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("zyOperateRecord")]
    public class ZYOperateRecordController : TaskSchedulingController
    {
        private IZYOperateRecordService _zyOperateRecordService;

        public ZYOperateRecordController(IZYOperateRecordService zyOperateRecordService)
        {
            _zyOperateRecordService = zyOperateRecordService;
        }

        [HttpGet]
        public async Task<PagedResultDto<ZYOperateRecordDto>> GetListAsync([FromQuery]ZYOperateRecordInput input)
        {
            return await _zyOperateRecordService.GetListAsync(input);
        }
    }
}
